function	script	ips_users_guilds	{

	deletearray .@acc_id[0],127;
	deletearray .@last_ip[0],127;
	deletearray $@Error[0],127;

	query_sql("SELECT `account_id` FROM `guild_member` WHERE `guild_id` = " + getarg(0) + " AND `online`=1 ORDER by `guild_id` ASC `char_id`",.@acc_id);
	
	if( getarraysize(.@acc_id) < 15 ){
		setarray $@Error[getarraysize($@Error)],"Essa guild, está apenas com " + getarraysize(.@acc_id) + " jogador(res) online";
	}	
		
	for( set .@i,0; .@i < getarraysize(.@acc_id); set .@i,.@i+1 ){
		if( !isloggedin( .@acc_id[.@i] ) ){
			setarray $@Error[getarraysize($@Error)],"A conta " + .@acc_id[.@i] + " ficou offline durante o processo";
		}
		query_sql("SELECT `last_ip` FROM `login` WHERE `account_id`=" + .@acc_id[.@i] + "",.@last_ip);
		query_sql("SELECT `account_id` FROM `login` WHERE `last_ip`=" + .@last_ip[0] + "",.@accs_couts);
		if( getarraysize(.@accs_couts) > 1 ){
			setarray $@Error[getarraysize($@Error)],"A conta " + .@acc_id[.@i] + " está com " + getarraysize(.@accs_couts) + " contas Online IP";
		}
	}
	
	if( getarraysize($@Error) > 0 ) return 0;
	
	return 1;
}